<%--
  Created by IntelliJ IDEA.
  User: 22657
  Date: 2020/7/22
  Time: 11:30
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>学生管理系统首页</title>
  </head>
  <body>
  <% Object username = session.getAttribute("username");%>
<c:choose>
    <c:when test="${username eq null}">
        <a href="/stu4.6/login.jsp">请登录</a>
    </c:when>
       <c:when test="${username eq ''}">
           <a href="/stu4.6/login.jsp">请登录</a>
       </c:when>
    <c:otherwise>
        <a href="/stu4.6/addstudent.jsp">添加学生</a>
        <a href="/stu4.6/liststudent">查看学生</a>
    </c:otherwise>
</c:choose>

  </body>
</html>
